<!-- 功能权限 -->
<template>
    <div id='' class='addUpdata_function'>
        <p>功能权限</p>
        <Tree ref="treeRef" :data="treeList" show-checkbox ></Tree>
    </div>
</template>
<script>

export default {
    name: '',
    props: [''],
    data() {
        return {
            value: '',
            treeList: [],
        };
    },
    components: {},
    computed: {},
    beforeMount() { },
    mounted() { },
    methods: {
        // 树数据
        setTreeList(list) {
            this.treeList = list;
        },
        // 获取选中项
        getCheckList() {
            let arr = [];
            this.$refs.treeRef.getCheckedAndIndeterminateNodes().forEach(item => {
                arr.push({ id: item.id, type: item.type })
            });
            return arr;
        },
    },
    watch: {}
}
</script>
<style lang='less' scoped>
.addUpdata_function {
    display: flex;
    p {
        margin: 7px 20px;
    }
}
/deep/.ivu-tree-empty {
    height: 100%;
    line-height: 35px;
}
</style>
